﻿@using System.Web.UI.WebControls
@using WeiXinGeneralApi.Models
@model TemplateMessageDto
@{
    ViewBag.Title = "发送微信模板消息";
}

@using (Ajax.BeginForm("Send",new AjaxOptions(){HttpMethod = "Post",OnSuccess = "AjaxSuccess()",OnComplete = "AjaxComplete()",OnFailure = "AjaxFailure()"}))
{
    <h2>微信模板消息</h2>
    @Html.TextBoxFor(x=>x.OpenId,new {@placeholder="微信OpenId"})
    @Html.TextBoxFor(x => x.First,new {@placeholder="消息标题"})
    @Html.TextBoxFor(x => x.Keyword1, new { @placeholder = "优惠券" })
    @Html.TextBoxFor(x => x.Keyword2, new { @placeholder = "来源商家" })
    @Html.TextBoxFor(x => x.Keyword3, new { @placeholder = "过期时间" })
    @Html.TextBoxFor(x => x.Keyword4, new { @placeholder = "使用说明" })
    @Html.TextBoxFor(x => x.Url, new { @placeholder = "消息链接"})
    <input type="submit" value="发送" style="cursor: pointer"/>
}